<?php

namespace app\common\model;


use think\Model;

class LiveStoreModel extends Model
{
    protected $connection = 'db_live';

    // 挂件关联
    public function props()
    {
        return $this->hasOne(PropsNewModel::class, 'id', 'props_id');
    }

    // 礼物关联
    public function gift()
    {
        return $this->hasOne(GiftModel::class, 'id', 'gift_id');
    }

    public function admin()
    {
        return $this->hasOne(AdminModel::class, 'id', 'admin_id');
    }
}
